package mt.interfaceGui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;

public class SentinelaUser implements ActionListener {
	private ConfigTabelaHist configTabelaHist;
	private JTable tableHistorico;

	public SentinelaUser(ConfigTabelaHist configTabelaHist,JTable tableHistorico) {
		this.configTabelaHist=configTabelaHist;
		this.tableHistorico=tableHistorico;
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		JFrame frameUser = new JFrame("Historico Compra/Venda");
		frameUser.setSize(400,300);
		frameUser.setLocationRelativeTo(null);
		
		
		frameUser.add(new JScrollPane(tableHistorico));
		frameUser.setVisible(true);
		

	}

}
